import 'package:flutter/material.dart';
import 'package:zhongyiapp/widgets/custom_app_bar.dart';
import 'package:zhongyiapp/pages/literature/widgets/book_grid.dart';
import 'package:zhongyiapp/pages/literature/widgets/category_sidebar.dart';

class LiteraturePage extends StatelessWidget {
  const LiteraturePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CustomAppBar(
        title: '中医文献',
        actions: [
          IconButton(
            icon: const Icon(Icons.search),
            onPressed: () {
              // TODO: 实现搜索功能
            },
          ),
        ],
      ),
      body: Row(
        children: [
          // 左侧分类栏
          const CategorySidebar(),
          // 右侧书籍网格
          const Expanded(
            flex: 3,
            child: BookGrid(),
          ),
        ],
      ),
    );
  }
}
